`ifndef TEST_SV
`define TEST_SV

`include "transaction.svh"

module automatic test;
	initial begin
		transaction tr1, tr2;
		tr1 = new(1); // 调用new方法创建原始对象
		tr2 = new tr1; // 调用new操作符复制原始对象
		tr1.print("tr1");
		tr2.cfg_info.odd_parity = 'b0;
		tr1.print("tr1");
		tr2.print("tr2");
	end
endmodule

`endif
